package com.zl.pro.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;
import com.zl.pro.pojo.Order;
import com.zl.pro.pojo.OrderDetails;
import com.zl.pro.pojo.OrderPaging;
@Mapper
public interface OrderMapper {
	    //查询订单表最大id
		Long findMaxId();
		//添加订单
		void addOrder(Order order);
		//管理员确认订单
	    void updateOrderAdmin(@Param("orderid") String orderid,@Param("adminoperating") String adminoperating);
	    
	    //查询前天15点到昨天15点之间的订单信息
	    List<Order> findOrderId(@Param("date1") Date date1,@Param("date2") Date date2);
	    
	    
		List<Order> findTime();
		
		//根据id查询订单列表
		List<Order> orderListByid(OrderPaging page) ;
		//查询当前条件共有多少条数据
		Integer orderListByidCount(OrderPaging page);
		
		//查询所有订单列表
		List<Order> seAllOrder(OrderPaging page) ;
		//查询当前条件有多少条记录
		Integer seAllOrderCount(OrderPaging page);
		
/*	    int deleteByPrimaryKey(Long id);

	    int insert(Order record);

	    int insertSelective(Order record);

	    Order selectByPrimaryKey(Long id);

	    int updateByPrimaryKeySelective(Order record);

	    int updateByPrimaryKey(Order record);*/

	
	
    
}